package com.apanal.qlife.property.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.apanal.qlife.common.page.Page;
import com.apanal.qlife.property.model.Community;

public interface CommunityMapper {
    int deleteByPrimaryKey(Long comId);

    Long insert(Community record);

    int saveCommunity(Community record);

    Community findCommunity(Long comId);

    int updateByPrimaryKeySelective(Community record);

    int updateByPrimaryKey(Community record);
    
    List<Community> findCommunityList(@Param(value="c")Community community,@Param(value = "p")Page page);
    
    int findCommunityListCount(@Param(value="c")Community community);

	int selectRelationForPageCount(@Param(value = "e")Community community, @Param(value = "p")Page page);

	List<Community> selectRelationForPage(@Param(value = "e")Community community, @Param(value ="p")Page page);

	List<Community> select(Community param);
	
	int saveCommunityList(List<Community> list);
}